<include file="Public:header"/>
<link href="__PUBLIC__/Catalog/css/selectOrder.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="main">
   <div class="title">
         <div class="title1">
             <a href="{:U('Products/detail')}?pid={$pid}" id="back"> < </a>选择下单方式
         </div>
   </div>
   <form action="" id="changeMethod" method="post">
   <input type="hidden" name="products_id" value="{$pid}"/>
   <div class="cc">
        <div class="cc2">
            <table>
                 <tr>
                     <td id="imgs"><img src="__PUBLIC__/images/products/{$productsDetail.products_image}" /></td>
                     <td id="contents">
                         <dl>
                            <dd>{$productsDetail.products_name}</dd>
                            <!-- <dd style="margin-top:6px;"><span style="font-size:17px;">单价:</span><strong style="font-size:17px; color:red;">100元</strong></dd> -->
                            <dd>
                            <if condition="$productsDetail['products_type'] eq 3">
                            <span style="font-size:17px;">公益商品，支付运费获取</span>
                            <else/>
                            <span style="font-size:17px;">单价:</span><strong style="font-size:17px; color:red;">{$productsDetail.products_price}元
                            </if>
                            </strong></dd>
                         </dl>
                     </td>
                 </tr>
            </table>
        </div>
       
   </div>
   <div class="reg">
        <div class="reg2">
            <ul>
               <li style="margin-top:10px;"><span class="sp_p1">备注信息</span> </li>
               <li style="min-height:107px; margin-bottom:20px; text-align: center; "><textarea id="comment" name="comment"  rows="6" style="width:320px;  padding-left: 10px; padding-right: 10px; padding-top:5px; border: 1px solid #999; border-radius:5px;" placeholder="填写卖家恰淡的内容..."></textarea></li>
              <if condition="$productsDetail['products_type'] eq 3">
              <li id="sub"><input type="button" id="line" onclick="javascript:changeType('line')"  value="点击获取" /></li>
              <else/>
               <li id="sub"><input type="button" id="line" onclick="javascript:changeType('line')"  value="线下交易" /></li>
               <if condition="$onlinepay eq 1"><li id="sub"><input type="button" id="online" onclick="javascript:changeType('online')" value="在线交易" /></li></if>
               </if>
            </ul>
        </div>
   </div>
   </form>
</div>
<div class="foot"><p>注:交易前先与卖家恰淡交易细节,切勿提前向卖付款。</p></div>
<script>
$(function(){
    if('{$msg}'!='0'){
        alert('{$msg}');
    }
});
function changeType(type){
	var href="{:U('Order/"+type+"')}";
	$('#changeMethod').attr('action',href);
	$('#changeMethod').submit();
}

</script>
<include file="Public:footer" />
